#include <QCoreApplication>
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
    int i,n;
   cout<<"vvedite N: ";cin>>n;i=1;
   while (n>i*i) {
    i++;
   }
   cout<<"K="<<i-1;
   return 0;
}
